package org.aepscolombia.platform.models.entity;
// Generated Jan 13, 2014 2:36:33 PM by Hibernate Tools 3.2.1.GA


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * ExtensionAgents generated by hbm2java
 */
@Entity
@Table(name="extension_agents"
    ,catalog="madr_bd10"
)
public class ExtensionAgents  implements java.io.Serializable {


     private Integer idExtAge;
     private Entities entities;
     private Boolean statusExtAge;

    public ExtensionAgents() {
    }

	
    public ExtensionAgents(Entities entities) {
        this.entities = entities;
    }
    public ExtensionAgents(Entities entities, Boolean statusExtAge) {
       this.entities = entities;
       this.statusExtAge = statusExtAge;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id_ext_age", unique=true, nullable=false)
    public Integer getIdExtAge() {
        return this.idExtAge;
    }
    
    public void setIdExtAge(Integer idExtAge) {
        this.idExtAge = idExtAge;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="id_entity_ext_age", nullable=false)
    public Entities getEntities() {
        return this.entities;
    }
    
    public void setEntities(Entities entities) {
        this.entities = entities;
    }
    
    @Column(name="status_ext_age")
    public Boolean getStatusExtAge() {
        return this.statusExtAge;
    }
    
    public void setStatusExtAge(Boolean statusExtAge) {
        this.statusExtAge = statusExtAge;
    }




}


